#ifndef UNonSpaceFillingContainerWindowH
#define UNonSpaceFillingContainerWindowH
#include "stdafx.h"
#include "UContainerWindow.h" //needs to be included, since this inherrits from ContainerWindow

class TNonSpaceFillingContainerWindow: public TContainerWindow
{
private:
	void MouseMove	(int X, int Y, int mstate);
	void MouseDown	(int X, int Y, uint8 button);
	void MouseUp	(int X, int Y, uint8 button);

public:
	int DragWindowLeft, DragWindowTop, DragWindowWidth, DragWindowHeight;
	TDockable* DraggingWindow;

	bool Resizing;	//Children[ActiveChildIndex] is resizing
	int getCursorType(int X, int Y);

	virtual TNonSpaceFillingContainerWindow* GetRoot();

	TNonSpaceFillingContainerWindow(TRectangle Rect, TContainerWindow* parent, TWindowThemer *wt, std::string name);
	virtual void EventHandle(SDL_Event event);
	virtual void Draw( );
	virtual void setActiveChild(int Child);

	void WindowMove(int X, int Y);
	virtual bool IsFocussed();
};

#endif
